package com.example.mybatisplus.web.controller;

import com.example.mybatisplus.mapper.HomeworkMapper;
import com.example.mybatisplus.service.HomeworkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/v1")
public class HomeworkController {
    @Autowired
    private HomeworkService homeworkService;
    @Autowired
    private HomeworkMapper homeworkMapper;

    @GetMapping("/question1")
    public List<Object> question1(){
        return homeworkService.question1();
    }
    @GetMapping("/question2")
    public List<Object> question2(){
        return homeworkService.question2();
    }
    @GetMapping("/question3")
    public List<Object> question3(){
        return homeworkMapper.question3();
    }

    @GetMapping("/question4")
    public List<Object> question4(){
        return homeworkMapper.question4();
    }
    @GetMapping("/question5")
    public List<Object> question5(){
        return homeworkMapper.question5();
    }
    @GetMapping("/question6")
    public List<Object> question6(){
        return homeworkMapper.question6();
    }
    @GetMapping("/question7")
    public List<Object> question7(){
        return homeworkMapper.question7();
    }
    @GetMapping("/question8")
    public List<Object> question8(){
        return homeworkMapper.question8();
    }
    @GetMapping("/question9")
    public List<Object> question9(){
        return homeworkMapper.question9();
    }
    @GetMapping("/question10")
    public List<Object> question10(){
        return homeworkMapper.question10();
    }
    @GetMapping("/question11")
    public List<Object> question11(){
        return homeworkMapper.question11();
    }
    @GetMapping("/question12")
    public List<Object> question12(){
        return homeworkMapper.question12();
    }
    @GetMapping("/question13")
    public List<Object> question13(){
        return homeworkMapper.question13();
    }
    @GetMapping("/question14")
    public List<Object> question14(){
        return homeworkMapper.question14();
    }
    @GetMapping("/question15")
    public List<Object> question15(){
        return homeworkMapper.question15();
    }
    @GetMapping("/question16")
    public List<Object> question16(){
        return homeworkMapper.question16();
    }
    @GetMapping("/question17")
    public List<Object> question17(){
        return homeworkMapper.question17();
    }
    @GetMapping("/question18")
    public List<Object> question18(){
        return homeworkMapper.question18();
    }
}
